TAR = main.out
OBJ = main.o

CFLAGS += -c -Wall -g

HEADPATH = ./include/
LIBPATH  = ./lib/

LIBNAME += SqList

$(TAR):$(OBJ)
	gcc -o $@ $^ -L $(LIBPATH) -l $(LIBNAME)

%.o:%.c
	gcc $(CFLAGS) -o $@ $^ -I $(HEADPATH)

clean:
	$(RM) -r *.o $(TAR)